Skip to content

[3.15] gh-157468: Validate correct builtins used under JIT (GH-157766) - #159048

Merged
encukou merged 1 commit into
python:3.15from
johng:backport-0906d2a-3.15
Oct 12, 2026
Merged

encukou merged 1 commit into
python:3.15from
johng:backport-0906d2a-3.15

Conversation

@johng

@johng johng commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
  • Expose two possible builtin JIT gaps

  • Add trace and runtime guard for builtin dict

  • Check _GUARD_BUILTINS_IS_CANONICAL once per frame

  • Add check and fix for globals being folded
    (cherry picked from commit 0906d2a)

Co-authored-by: John me@joh.ng

Manual backport: the only conflict was in the generated Include/internal/pycore_uop_ids.h; resolved by running make regen-cases on 3.15.

…honGH-157766)

* Expose two possible builtin JIT gaps

* Add trace and runtime guard for builtin dict

* Check _GUARD_BUILTINS_IS_CANONICAL once per frame

* Add check and fix for globals being folded
(cherry picked from commit 0906d2a)

Co-authored-by: John <me@joh.ng>
@johng

johng commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

@markshannon could you review please as a followup to the linked PR, thanks!

@encukou
encukou merged commit 4df287d into python:3.15 Oct 12, 2026
78 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants